package com.wyj.server;

/**
 * TODO: 表示servlet。一个context可以有多个wrapper
 *
 * @author wuyijie
 * @date 2021/12/13 22:03
 */
public class Wrapper {
    private String servletName;
    private String servletClass;
    private String pattern;

    public Wrapper() {
    }

    public Wrapper(String servletName, String servletClass, String pattern) {
        this.servletName = servletName;
        this.servletClass = servletClass;
        this.pattern = pattern;
    }

    public String getServletName() {
        return servletName;
    }

    public void setServletName(String servletName) {
        this.servletName = servletName;
    }

    public String getServletClass() {
        return servletClass;
    }

    public void setServletClass(String servletClass) {
        this.servletClass = servletClass;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    @Override
    public String toString() {
        return "Wrapper{" +
                "servletName='" + servletName + '\'' +
                ", servletClass=" + servletClass +
                ", pattern='" + pattern + '\'' +
                '}';
    }
}
